package com.liwei.lwmail.product;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 1.整合mybatisplus--参考官方文档
 *   1）导入mybatisplus依赖
 *   2）配置
 *      配置数据源
 *         导入数据库驱动
 *         配置数据源相关信息
 *
 *      配置mybatisplus相关信息
 *         @MapperScan
 *         sql映射文件位置
 *
 */
@EnableRedisHttpSession
@EnableTransactionManagement
@EnableFeignClients(basePackages = "com.liwei.lwmail.product.feign")
@EnableDiscoveryClient
@MapperScan("com.liwei.lwmail.product.dao")
@SpringBootApplication
public class LwmailProductApplication {

	public static void main(String[] args) {
		SpringApplication.run(LwmailProductApplication.class, args);
	}

}
